<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="@{include} :: header"></head>
<body>
<div class="layuimini-container">
    <div class="layuimini-main">
        <div class="layui-row">
            <form class="layui-form layui-form-pane" id="signupForm">
                <input id="id" name="id" th:value="${eventsSection.id}" type="hidden">
                <div class="layui-form-item">
                    <label class="layui-form-label">类别：</label>
                    <div class="layui-input-block">
                        <select id="typeId" name="typeId" class="layui-input" lay-filter="typeId">
                            <option value="">所属类别</option>
                            <th:block th:each="t : ${typeList}">
                                <option th:value="${t.id}" th:text="${t.typeName}" th:selected="${eventsSection.typeId eq t.id}"></option>
                            </th:block>
                        </select>
                    </div>
                </div>


                <div class="layui-form-item">
                    <label class="layui-form-label">类型/区域：</label>
                    <div class="layui-input-block">
                        <select id="typeChildId" name="typeChildId" class="layui-input">
                            <option value="">类型/区域</option>
                            <th:block th:each="t : ${typeChildList}">
                                <option th:value="${t.id}" th:text="${t.typeName}" th:selected="${eventsSection.typeChildId eq t.id}"></option>
                            </th:block>
                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">隐患等级：</label>
                    <div class="layui-input-block">
                        <select data-placeholder="--请选择--" name="eventLevel" id="eventLevel" class="form-control">
                            <option value="1" th:selected="${eventsSection.eventLevel == 1}">一般隐患</option>
                            <option value="2" th:selected="${eventsSection.eventLevel == 2}">重大隐患</option>
                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">隐患描述：</label>
                    <div class="layui-input-block">
                        <input id="content" name="content" th:value="${eventsSection.content}" class="layui-input" type="text" autocomplete="off">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">奖励标准：</label>
                    <div class="layui-input-block">
                        <input id="rewardMoney" name="rewardMoney" th:value="${eventsSection.rewardMoney}" class="layui-input"  type="number" autocomplete="off">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">处罚标准：</label>
                    <div class="layui-input-block">
                        <input id="punishMoney" name="punishMoney" th:value="${eventsSection.punishMoney}" class="layui-input"  type="number" autocomplete="off">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">连带标准金额：</label>
                    <div class="layui-input-block">
                        <input id="lianDaiMoney" name="lianDaiMoney" th:value="${eventsSection.lianDaiMoney}" class="layui-input"  type="number" autocomplete="off">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">直接上级比例：</label>
                    <div class="layui-input-block">
                        <input id="directRate" name="directRate" th:value="${eventsSection.directRate}" class="layui-input"  type="number" autocomplete="off">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">间接上级比例：</label>
                    <div class="layui-input-block">
                        <input id="indirectRate" name="indirectRate" th:value="${eventsSection.indirectRate}" class="layui-input"  type="number" autocomplete="off">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">状态：</label>
                    <div class="layui-input-block">
                        <select data-placeholder="--请选择--" name="state" id="state" class="form-control chosen-select">
                            <option value="1" th:selected="${eventsSection.state == 1}">启用</option>
                            <option value="0" th:selected="${eventsSection.state == 0}">禁用</option>
                        </select>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div style="text-align: center;margin-top: 20px">
                        <a onclick="update()" class="layui-btn layui-btn-normal" >提交</a>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" th:src="@{/js/appjs/module/eventsSection/detail.js}"></script>
</body>
</html>
